from rest_framework import serializers
from . import models


class BannerModelSeiralizer(serializers.ModelSerializer):
    class Meta:
        model = models.Banner
        fields = ['id','title','link','image_url']


class NavModelSeiralizer(serializers.ModelSerializer):
    class Meta:
        model = models.Nav
        fields = ['id','title','link','is_site']